package ch.service.impl;

import ch.dao.ddao;
import ch.entity.danger;
import ch.service.dservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class dserviceimpl implements dservice {
    @Autowired
    private ddao ddao;
    @Override
    public List<danger> getall() {
        return ddao.getall();
    }

    @Override
    public danger getone(String name) {
        return ddao.getone(name);
    }

    @Override
    public danger getonebyid(int id) {
        return ddao.getonebyid(id);
    }

    @Override
    public boolean setone(danger danger) {
        return ddao.setone(danger);
    }

    @Override
    public boolean insertone(danger danger) {
        return ddao.insertone(danger);
    }
}
